<?php

/**
 * Name: 批量审核验证层
 * User: Silent
 * Date: 2021-07-01
 * Time: 10:04:39
 */

namespace App\Http\Requests\Safety;

use App\Http\Requests\CustomRequest;

class MultiCheckRequest extends CustomRequest
{

    /**
     * 获取适用于请求的验证规则.
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'reason'      => 'required|string',
        ];
    }

    /**
     * 获取定义的验证规则的错误消息。
     * Get the error messages for the defined validation rules.
     *
     * @return array
     */
    public function messages()
    {
        $messages = [
            'reason.required' => '驳回原因 不能为空',
        ];

        return $messages;
    }
}
